package com.ss.android.article.base.feature.feed.activity;

import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.PopupWindow;
import android.widget.TextView;
import com.bytedance.common.utility.UIUtils;
import com.ss.android.article.base.app.AppData;

public final class ag {
    Context a;
    TextView b;
    View c;
    PopupWindow d;

    public ag(Context arg6) {
        int v4 = -2;

        if(arg6 != null) {
            this.a = arg6;
            LayoutInflater v0 = LayoutInflater.from(arg6);
            AppData.getInstance();
            AppData.isNightMode();
            this.c = v0.inflate(com.ss.android.article.browser.R.layout.ct, null);
            if(this.c != null) {
                this.d = new PopupWindow(this.c, v4, v4);
                this.b = this.c.findViewById(com.ss.android.article.browser.R.id.ry);
                this.b.setTextColor(arg6.getResources().getColor(com.ss.android.article.browser.R.color.ssxinzi7));
                UIUtils.setBackgroundDrawable(this.b, arg6.getResources().getDrawable(com.ss.android.article.browser.R.drawable.dislike_title_btn_background_selector));
                this.d.setBackgroundDrawable(new ColorDrawable(0));
                this.d.setFocusable(true);
                this.c.measure(View.MeasureSpec.makeMeasureSpec(0, 0), View.MeasureSpec.makeMeasureSpec(0, 0));
            }
        }
    }
}

